//
//  UIView+Extension.m
//  QuXiang
//
//  Created by Duncan on 2020/6/22.
//  Copyright © 2020 NanHuaiZi. All rights reserved.
//

#import "UIView+Extension.h"

@implementation UIView (Extension)

- (void)addSubviews:(NSArray<UIView *> *)subviews {
    for (UIView *view in subviews) {
        [self addSubview:view];
    }
}

- (void)addBordWidthWith:(CGFloat)width color:(UIColor *)color {
    self.layer.borderWidth = width;
    self.layer.borderColor = color.CGColor;
}

@end
